package com.cx.service;

import com.cx.pojo.Brand;
import com.cx.pojo.Car;
import com.cx.pojo.CarInfoModel;

import java.util.List;

public interface BrandService {
    //添加品牌
    int insert(Brand brand);

    //删除品牌
    int deleteByPrimaryKey(Integer brandId);

    //修改品牌
    int updateByPrimaryKey(Brand brand);

    //根据id查询汽车
    Brand selectByPrimaryKey(Integer brandId);

    //查询所有品牌
    List<Brand> selectAll(Brand brand);

    //根据品牌查询汽车
    List<CarInfoModel> selectBrandByBrandName(String brandName);

    Brand selectBrand(String brandName);
}
